<!-- 写html -->
<template>
  <Person v-if="isShow" />
</template>
f
<!-- 写js或ts -->
<script lang="ts" setup name="App">
  import { onMounted, ref } from "vue";
  import Person from "./components/Person.vue";

  let isShow = ref(true);

  //挂载完毕
  onMounted(() => {
    console.log("父---挂载完毕");
  });
</script>

<!-- 写css -->
<style></style>
